package linear.linked.base;

/**
 * 双向链表
 *
 * @author yeyangtao created at 15:18 2020/8/28
 */
public class MyDoubleLiked<T> {
    private T value;
    private MyDoubleLiked<T> prev;
    private MyDoubleLiked<T> next;

    public MyDoubleLiked() {
    }

    public MyDoubleLiked(T value) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public MyDoubleLiked<T> getPrev() {
        return prev;
    }

    public void setPrev(MyDoubleLiked<T> prev) {
        this.prev = prev;
    }

    public MyDoubleLiked<T> getNext() {
        return next;
    }

    public void setNext(MyDoubleLiked<T> next) {
        this.next = next;
    }
}
